һ

NAT:
iptables -A POSTROUTING -t nat -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward

ںģʽã

PPPOE-PROXY:
/usr/local/sbin/pppoe-server -I 'eth0,eth1'  -L 192.168.1.200 -R 192.168.1.201 -N 4 -k -d -A &

pppoe-client:
pppoe-connect &
/usr/bin/setsid /usr/local/sbin/pppd plugin rp-pppoe.so eth0 noipdefault noauth default-asyncmap usepeerdns defaultroute hide-password nodetach  mtu 1492 mru 1492 \
noaccomp nodeflate nopcomp novj novjccomp user test password test lcp-echo-interval 20 lcp-echo-failure 3   debug(Դӡ)
ֻuser test password test

ûģʽã
PPPOE-PROXY:
./pppoe-server -I 'eth0,eth1'  -L 192.168.1.200 -R 192.168.1.201 -N 4  -d -A &

pppoe-client:
pppoe-connect &
/usr/bin/setsid pppd pty '/usr/local/sbin/pppoe -p /var/run/pppoe.conf-pppoe.pid.pppoe -I eth0 -T 80 -U  -m 1412   ' noipdefault noauth default-asyncmap usepeerdns defaultroute hide-password nodetach  mtu 1492 mru 1492 \
noaccomp nodeflate nopcomp novj novjccomp user test password test lcp-echo-interval 20 lcp-echo-failure 3   debug(Դӡ)
ֻuser test password test

밲װ
(1)룺
Ŀ¼:
make configure prefix=/ CC=gcc

make all
(2)װ
make install


лҪ
(1)ںģʽ
ں֧ppp豸,pppoe,ppp_generic,ppp_async,ppp_deflate(ڶpppѹû)
(2)ûģʽ
pppoeںģʽһ












